Re: [SQL] DISTINCT count(*), possible?

Поиск
Список
Период
Сортировка
От Herouth Maoz
Тема Re: [SQL] DISTINCT count(*), possible?
Дата
Msg-id l03130301b38d2ad5bfaa@[147.233.159.109]
обсуждение исходный текст
Ответ на Re: [SQL] DISTINCT count(*), possible?  (Stuart Rison <stuart@ludwig.ucl.ac.uk>)
Список pgsql-sql
At 11:55 +0300 on 16/06/1999, Stuart Rison wrote:


> A previously posted work-around (search the GENERAL mailing list with
> 'count', 'DISTINCT' and 'Herouth') adapted to your query is:
>
> SELECT count(*)
> FROM aro t1
> WHERE int( oid ) = (
>     SELECT min( int( t2.oid ) )
>     FROM test t2
>     WHERE t2.address1 = t1.address1
> );

Since I apparently own the copyright for this solution :-)

The internal FROM should read "FROM aro t2", not "FROM test t2".

Herouth

--
Herouth Maoz, Internet developer.
Open University of Israel - Telem project
http://telem.openu.ac.il/~herutma




В списке pgsql-sql по дате отправления:

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: [HACKERS] Postgres mailing lists
Следующее
От: Vince Vielhaber
Дата:
Сообщение: Re: [HACKERS] Postgres mailing lists